package com.lkm.app_ui.event;

import com.google.gson.annotations.SerializedName;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;
import com.lkm.market2_0.m.steelyarddata.OrderEntity;

import androidx.annotation.NonNull;



public class OnSubtotalRealEvent implements LinkBusEventFlag {


    
    @SerializedName("changeGoods")
    private final OrderEntity.GoodEntity[] changeGoods;

    
    @SerializedName("realGoods")
    private final OrderEntity.GoodEntity[] realGoods;

    
    @SerializedName("isAdd")
    private final boolean isAdd;

    public OnSubtotalRealEvent(OrderEntity.GoodEntity[] realGoods,OrderEntity.GoodEntity[] changeGoods,  boolean isAdd) {
        this.changeGoods = changeGoods;
        this.realGoods = realGoods;
        this.isAdd = isAdd;
    }

    public @NonNull
    OrderEntity.GoodEntity[] getChangeGoods() {
        return changeGoods;
    }

    public @NonNull
    OrderEntity.GoodEntity[] getRealGoods() {
        return realGoods;
    }

    public boolean isAdd() {
        return isAdd;
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {
        return ThreadEnforcer.ANY;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
